Home:ALL Converter>Javascript returning [object Object], which needs to be removed

Javascript returning [object Object], which needs to be removed

Ask Time:2014-03-02T22:25:02         Author:user3350333

Json Formatter

I need some help with my JavaScript, i am trying to sorting XML data with the help of JavaScript, and i am successful doing the sorting part, but the output is returning some garbage object [object Object], which i don't want it to be printed out, so i need some help to get this thing fixed so that i get a proper output. I am attaching a live fiddle. All these needs to be done with JavaScript and not JQUERY.

I don't want [object Object],[object Object] to be printed as output

Live Fiddle


bookstore 
   |
   |__book 
   |    |_____title
   |    |_____author
   |    |_____year
   |    |_____price
   |
   |__book 
   |
   |__book 
   |
   |__book  

Thank You

Author:user3350333,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/22128803/javascript-returning-object-object-which-needs-to-be-removed
yy